<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template basic_environment</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../process.html#doxygen.environment_8hpp" title="Header &lt;boost/process/v1/environment.hpp&gt;">
<link rel="prev" href="env_8hpp_1ab419cb076d2ab62ac6c22c40732ed15a.html" title="Global env">
<link rel="next" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html" title="Struct template const_entry_type">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="env_8hpp_1ab419cb076d2ab62ac6c22c40732ed15a.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../process.html#doxygen.environment_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template basic_environment</span></h2>
<p>boost::process::v1::basic_environment — Type definition to hold a seperate environment. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../mpi/reference.html#doxygen.environment_8hpp" title="Header &lt;boost/mpi/environment.hpp&gt;">boost/process/v1/environment.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Char<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">Char</span> <span class="special">&gt;</span>                               <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1af9123f38dcac2abca68ce80a347ceeee"></a><span class="identifier">string_type</span><span class="special">;</span>   
  <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">transform_iterator</span><span class="special">&lt;</span> <span class="identifier">entry_maker</span><span class="special">,</span> <span class="identifier">Char</span> <span class="special">*</span><span class="special">*</span> <span class="special">&gt;</span>       <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a087ccd46e3b7095a7327f3403295eb74"></a><span class="identifier">iterator</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">transform_iterator</span><span class="special">&lt;</span> <span class="identifier">const_entry_maker</span><span class="special">,</span> <span class="identifier">Char</span> <span class="special">*</span><span class="special">*</span> <span class="special">&gt;</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ad130d216debb09ac8e484a1142270846"></a><span class="identifier">const_iterator</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span>                                             <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a25793027499357cee399ae804344d47e"></a><span class="identifier">size_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                                             <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a3b68cd09abde089e5a5c93a2577e01c3"></a><span class="identifier">native_handle</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                                             <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a830f56d619544bce5a45c1ac0501e2c0"></a><span class="identifier">base_type</span><span class="special">;</span>     

  <span class="comment">// member classes/structs/unions</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Char<span class="special">,</span> <span class="keyword">typename</span> Environment<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html" title="Struct template const_entry_type">const_entry_type</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="identifier">Char</span>                             <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a1414ccf53da696fe6f37124b14d51298"><span class="identifier">value_type</span></a><span class="special">;</span>   
    <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">*</span>               <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a3aa3fd64ab98bb76bcb5c1b73a25537d"><span class="identifier">pointer</span></a><span class="special">;</span>      
    <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span>  <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a8fe07eb093b291240a99471a9beb294e"><span class="identifier">string_type</span></a><span class="special">;</span>  
    <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_range</span><span class="special">&lt;</span> <span class="identifier">pointer</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1afe4244cab27cc493cc412c161dabc6f4"><span class="identifier">range</span></a><span class="special">;</span>        
    <span class="keyword">typedef</span> <span class="identifier">Environment</span>                      <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a277bc528c9b69a50332c7af2133dc582"><span class="identifier">environment_t</span></a><span class="special">;</span>

    <span class="comment">// <a class="link" href="reference_section_of_boost_any/classboost_1_1anys_1_1basic__any.html#id3-bb">public member functions</a></span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a4b4dd3b3f1f89e2334772231d91f9a24"><span class="identifier">to_vector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
     <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1ada5cbe5c19a04a6c7cde1fbdeadedf64"><span class="identifier">const_entry</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <span class="identifier">const_entry</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1aa81c3d946251f7f81a5bcdd1de295636"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">const_entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type_1a8932fc5bc143b97df0b23d0b11965b6d"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Char<span class="special">,</span> <span class="keyword">typename</span> Environment<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html" title="Struct template entry_type">entry_type</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="identifier">Char</span>                             <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1ad59e6ecd90eee423599cc2a9129e33ba"><span class="identifier">value_type</span></a><span class="special">;</span>   
    <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">*</span>               <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a5312943f70c1ca84949bde10fc0dc72d"><span class="identifier">pointer</span></a><span class="special">;</span>      
    <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span>  <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1add1ed8cedce4b8b02d45fe329603a59a"><span class="identifier">string_type</span></a><span class="special">;</span>  
    <span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">iterator_range</span><span class="special">&lt;</span> <span class="identifier">pointer</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1ae89395eaedc5e228f713d65093d50ffe"><span class="identifier">range</span></a><span class="special">;</span>        
    <span class="keyword">typedef</span> <span class="identifier">Environment</span>                      <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a28cb806caa27a50ca5b03a5872545ee0"><span class="identifier">environment_t</span></a><span class="special">;</span>

    <span class="comment">// <a class="link" href="reference_section_of_boost_any/classboost_1_1anys_1_1unique__any.html#id4-bb">public member functions</a></span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a9e7528e294e2c932dc3c4ca6b30d5979"><span class="identifier">to_vector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
     <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1adacf12d4622a33b679cc4f2d351f118e"><span class="identifier">entry</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <span class="identifier">entry</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1ab949033aa9b442484d574b54b187fc45"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">entry</span> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a0970909440ca86387a69b301862ae08d"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a2543ca95c80b7c6410c7e47180d2a3fc"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1aed4ac86b84ec9aa17c36bccd67f56d70"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a2f1facb67742111bb3b2f380dfb85450"><span class="identifier">append</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a9d994c07d746f1da50a96a20d245973b"><span class="identifier">clear</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">entry</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1acdedd89ba927b95fca6d95259a7a02ce"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">entry</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1a0e93a0e004a446c937966a0a4791f939"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">entry</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html#doxygen.structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type_1add324a0adfade273199ce31d182b2b2d"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="boost_container_header_reference/classboost_1_1container_1_1private__adaptive__pool.html#id5-bb">public member functions</a></span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a11c6ac56bb339670d6913afec57800e9"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a9aaa9c0946dad97febdfb258091f3388"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a60620167cabcd0753008ea096f9dbfeb"><span class="identifier">cbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ab1df43bb2016dfd04fc732e0f6959b7d"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a4d2fcbae54d587e0aff7a38738ecbd41"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a2e5d823466edaf29f57029321b153c10"><span class="identifier">cend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a14f9fccf12eb6c93015724c3733a1d74"><span class="identifier">find</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">const_iterator</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ae1db3e3d8fc9c3d10eda31bec8c6e402"><span class="identifier">find</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a4ccde3fbbda09e5e6b794e02b4bda2de"><span class="identifier">count</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ad91848f8639aaf262063f58b5aa61522"><span class="identifier">erase</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special">&lt;</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a9624d2e7f20fc6a85d6113da55954007"><span class="identifier">emplace</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a998dbe77812182b0cfbc024faa5ab130"><span class="identifier">basic_environment</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aef023ef00629293e432e8f2439b1314e"><span class="identifier">basic_environment</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1abfe33004c3647bfc3bcc788de045d36b"><span class="identifier">basic_environment</span></a><span class="special">(</span><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aaed2ff2bb0c966d6ed9b15828e91a6a8"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a42be0b25129869cf0a58a83c20250213"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aa31cada1f6e073bf0515048dc4f1c0a1"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aceef363accce2cd181a22f79d1091897"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ab4e4f07d52221db7af6b3ec74b59414b"><span class="identifier">clear</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html" title="Struct template entry_type">entry_type</a> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a6c6d021679772c25a847ae1b063f063f"><span class="identifier">at</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html" title="Struct template const_entry_type">const_entry_type</a> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a720bfa2e7113245564cd3ed0aec33426"><span class="identifier">at</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html" title="Struct template entry_type">entry_type</a> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html#doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a1500ee7288a60aaae03a8e6583b3d4e9"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.30.4.8.9.3.4"></a><h2>Description</h2>
<p>Template representation of environments. It takes a character type (<code class="computeroutput">char</code> or <code class="computeroutput">wchar_t</code>) as template parameter to implement the environment </p>
<div class="refsect2">
<a name="id-1.3.30.4.8.9.3.4.3"></a><h3>
<a name="id5-bb"></a><code class="computeroutput">basic_environment</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a11c6ac56bb339670d6913afec57800e9"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Returns an iterator to the beginning. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a9aaa9c0946dad97febdfb258091f3388"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns an iterator to the beginning. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a60620167cabcd0753008ea096f9dbfeb"></a><span class="identifier">cbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns an iterator to the beginning. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ab1df43bb2016dfd04fc732e0f6959b7d"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Returns an iterator to the end. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a4d2fcbae54d587e0aff7a38738ecbd41"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns an iterator to the end. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a2e5d823466edaf29f57029321b153c10"></a><span class="identifier">cend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Returns an iterator to the end. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a14f9fccf12eb6c93015724c3733a1d74"></a><span class="identifier">find</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> key<span class="special">)</span><span class="special">;</span></pre>Find a variable by its name. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">const_iterator</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ae1db3e3d8fc9c3d10eda31bec8c6e402"></a><span class="identifier">find</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> key<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Find a variable by its name. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a4ccde3fbbda09e5e6b794e02b4bda2de"></a><span class="identifier">count</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> st<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Number of variables. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ad91848f8639aaf262063f58b5aa61522"></a><span class="identifier">erase</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> id<span class="special">)</span><span class="special">;</span></pre>
<p>Erase variable by id. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special">&lt;</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&gt;</span> 
<a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a9624d2e7f20fc6a85d6113da55954007"></a><span class="identifier">emplace</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> id<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> value<span class="special">)</span><span class="special">;</span></pre>Emplace an environment variable. </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a998dbe77812182b0cfbc024faa5ab130"></a><span class="identifier">basic_environment</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Default constructor. </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aef023ef00629293e432e8f2439b1314e"></a><span class="identifier">basic_environment</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>Copy constructor. </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1abfe33004c3647bfc3bcc788de045d36b"></a><span class="identifier">basic_environment</span><span class="special">(</span><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span></pre>Move constructor. </li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aaed2ff2bb0c966d6ed9b15828e91a6a8"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>Copy assignment. </li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a42be0b25129869cf0a58a83c20250213"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="classboost_1_1process_1_1v1_1_1basic__environment.html" title="Class template basic_environment">basic_environment</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span></pre>Move assignment. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aa31cada1f6e073bf0515048dc4f1c0a1"></a><span class="identifier">empty</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Check if environment has entries. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1aceef363accce2cd181a22f79d1091897"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Get the number of variables. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1ab4e4f07d52221db7af6b3ec74b59414b"></a><span class="identifier">clear</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Clear the environment. <div class="important"><table border="0" summary="Important">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../doc/src/images/important.png"></td>
<th align="left">Important</th>
</tr>
<tr><td align="left" valign="top"><p>Use with care, passed environment cannot be empty. </p></td></tr>
</table></div>
<p>
</p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html" title="Struct template entry_type">entry_type</a> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a6c6d021679772c25a847ae1b063f063f"></a><span class="identifier">at</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> key<span class="special">)</span><span class="special">;</span></pre>Get the entry with the key. Throws if it does not exist. </li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html" title="Struct template const_entry_type">const_entry_type</a> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a720bfa2e7113245564cd3ed0aec33426"></a><span class="identifier">at</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> key<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Get the entry with the key. Throws if it does not exist. </li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1entry__type.html" title="Struct template entry_type">entry_type</a> <a name="doxygen.classboost_1_1process_1_1v1_1_1basic__environment_1a1500ee7288a60aaae03a8e6583b3d4e9"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> key<span class="special">)</span><span class="special">;</span></pre>Get the entry with the given key. It creates the entry if it doesn't exist. </li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2006-2012 Julio M. Merino Vidal, Ilya Sokolov,
      Felipe Tanus, Jeff Flinn, Boris Schaeling<br>Copyright © 2016 Klemens D. Morgenstern<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="env_8hpp_1ab419cb076d2ab62ac6c22c40732ed15a.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../process.html#doxygen.environment_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1process_1_1v1_1_1basic__environment_1_1const__entry__type.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
